@Inactive-Member-99077006,
Thanks for the clarification on updating the incident type and status. As for updating the assignee and escalation policy on the same request, the user was not assigned to the escalation policy. If the user is assigned to the escalation policy, then the Assignments field list does update.
But after further investigation, I have found that in order to do this though, you have to first update the escalation policy to include the user.
PUT escalation_policies/{escalationId}
{
"escalation_policy": {
"type": "escalation_policy",
"escalation_rules": [
{
"escalation_delay_in_minutes": 30,
"targets": [
{
"id": "{userId}",
"type": "user_reference"
}
]
}
]
}
}
Then you have to make a request to update the incident’s escalation policy, even though escalation policy is already associated with that incident.
PUT incidents/{incidentId}
{
"incident": {
"type": "incident",
"escalation_policy": {
"id": "{escalationId}",
"type": "escalation_policy_reference"
}
}
}
At this point the assignments field list is updated to include the user added to the escalation policy.
So it seems that if the user is not on the escalation policy, then the you can not add them by simply updating the assignments field list on the incident, i.e.
PUT incidents/{incidentId}
{
"incident": {
"type": "incident",
"assignments": [
{
"assignee": {
"id": "{userId}",
"type": "user_reference"
}
}
]
}
}
the above request does not do anything, i.e. does not add the user to the assignments field list. Is this the expected behavior?